﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FindNthMax
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] input = { 2, -4, 5, 6, 0, 7, -1, 10, 9 };

            int result = input.FindNthValue(2);

            Console.WriteLine("The Nth Max Value is: {0}", result);

            Console.Read();
        }
    }
}
